﻿using System;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using Abp.Runtime.Validation;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.SpecialPersons.Dtos
{
	/// <summary>
    /// 重点特殊人群查询Dto
    /// </summary>
    public class GetSpecialPersonInput : PagedAndSortedInputDto, IShouldNormalize
    {
        //DOTO:在这里增加查询参数

		/// <summary>
	    /// 模糊查询参数
		/// </summary>
		public string Filter { get; set; }

        public string Name { get; set; }

        /// <summary>
        /// 镇
        /// </summary>
        public int TownID { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        public int AreaID { get; set; }

        /// <summary>
        /// 村庄
        /// </summary>
        public int VillageID { get; set; }

        /// <summary>
        /// 人员类型ID
        /// </summary>
        public int PersonTypeID { get; set; }


        /// <summary>
        /// 用于排序的默认值
        /// </summary>
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "Id";
            }
        }
    }
}
